
service ps_moniter_controller 
{
    /**
    输入：{"model_name":"abcd", "model_id":1234}
    输出：{"result":"OK", "model_id":1234, "zk_url":"xxxx", "zk_path":"xxxx"}
        zk_path和zk_url是psProxy的参数
    */
    string runOfflinePs(1:string cmd);
    string runRealtimePs(1:string cmd);
    string runOnlinePs(1:string cmd);

     /**
    输入：{"model_name":"abcd", "model_id":1234}
    输出: {"result":"OK", "model_id":1234}
    */
    string stopPs(1:string cmd)

    /*
    输入：{"model_name":"abcd", "model_id":1234}
    输出：{"result":"OK", "model_id":1234, "realtime_zk_url":"xxxx", "realtime_zk_path":"xxxx", "online_zk_url":"xxx", "online_zk_path":"xxx"}
        zk_path和zk_url是psProxy的参数
    */
    string toBeOnline(1:string cmd);


    /*
        ips = client.getInfo('{"cmd":"list"}')
        print(ips)
        msg = client.getInfo('{"cmd":"info", "ip":"%s"}'%ips[1])
        print(msg)
        msg = client.getInfo('{"cmd":"info"}')
    */
    map<string, string> getInfo(1:string cmd);
}


